package Thread;

public class Demo09 {
    public static void main(String[] args) throws InterruptedException {
        Thread t  = new Thread(()->{
            for (int i = 0; i < 10000000; i++) {
                System.out.println((i+1)+" : 执行t线程");
            }
        });

        t.start();
        System.out.println("开始");
        t.join(0,1);
        System.out.println("结束");
    }
}
